package com.un.ebs.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.un.ebs.sys.domain.AppRule;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author liubo
 * @since 2019-09-15
 */
public interface AppRuleMapper extends BaseMapper<AppRule> {

    @Select("select isnull(max(sort)+1,1) from sys_app_rule")
    int maxSort();

}
